package com.cvs.zerox.service.impl;

import com.cvs.zerox.mapper.FruitMapper;
import com.cvs.zerox.pojo.Fruit;
import com.cvs.zerox.service.FruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FruitServiceImpl implements FruitService {

    @Autowired
    private FruitMapper fruitMapper;

    @Override
    public List<Fruit> selectAll() {
        return fruitMapper.selectAll();
    }
    @Override
    public int delete(int id) {
        return fruitMapper.delete(id);
    }

    @Override
    public Fruit detail(int id) {
        return fruitMapper.detail(id);
    }
}
